package minimips.isa.jtype;

import minimips.computer.Computer;
import minimips.exception.DataHazardException;

public class JInstruction extends JTypeInstruction {

	public JInstruction(long memoryAddress, int offset) {
		super(memoryAddress, 2, "J", offset);
	}
	
	@Override
	protected void decodeInstruction(Computer computer) throws DataHazardException {
		super.decodeInstruction(computer);
		computer.enableJump(this.getAbsoluteAddress());
	}

	@Override
	protected void executeInstruction(Computer computer) {
		
	}

	@Override
	protected void executeMemoryAccess(Computer computer) {
		
	}

	@Override
	protected void executeWriteBack(Computer computer) {

	}

	
}
